package com.j180.dao.impl;

import com.j180.bean.EmpBean;
import com.j180.dao.IEmpDao;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

@Repository
public class EmpDaoImpl implements IEmpDao {

    @Override
    public EmpBean getEmp(Long id) {
        return new EmpBean(id, UUID.randomUUID().toString());
    }

    @Override
    public List<EmpBean> getEmps() {

        List<EmpBean> list = new ArrayList<>();

        list.add(new EmpBean(1L,"小花"));
        list.add(new EmpBean(2L,"小菊"));
        list.add(new EmpBean(3L,"小牡丹"));

        return list;
    }
}
